import request from "@/utils/request";

// 查询vadmin/assets/列表
export function listModels(query) {
  return request({
    url: "/admin/assets/models/",
    method: "get",
    params: query
  });
}

// 查询vadmin/assets/详细
export function getModels(id) {
  return request({
    url: "/admin/assets/models/" + id + "/",
    method: "get"
  });
}

// 新增vadmin/assets/
export function addModels(data) {
  return request({
    url: "/admin/assets/models/",
    method: "post",
    data: data
  });
}

// 修改vadmin/assets/
export function updateModels(data) {
  return request({
    url: "/admin/assets/models/" + data.id + "/",
    method: "put",
    data: data
  });
}

// 删除vadmin/assets/
export function delModels(id) {
  return request({
    url: "/admin/assets/models/" + id + "/",
    method: "delete"
  });
}

// 导出vadmin/assets/
export function exportModels(query) {
  return request({
    url: "/admin/assets/models/export/",
    method: "get",
    params: query
  });
}
export function importsModels(data) {
  return request({
    url: "/admin/assets/models/import/",
    method: "post",
    data: data
  });
}

